package com.yy.jhl.ui.manager.activity;

import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

import com.handmark.pulltorefresh.library.PullToRefreshBase;
import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.yy.common.base.BaseActivity;
import com.yy.common.commonwidget.OnNoDoubleClickListener;
import com.yy.jhl.R;
import com.yy.jhl.ui.manager.adapter.InviteCodeAdapter;
import com.yy.jhl.ui.manager.adapter.UploadAdapter;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by libingn on 2017/12/10.
 */

public class InviteCodeHistoryActivity extends BaseActivity implements AdapterView.OnItemClickListener,PullToRefreshBase.OnRefreshListener2{
    @BindView(R.id.pull_list_view)
    PullToRefreshListView pullListView;
    ListView listView;
    InviteCodeAdapter inviteCodeAdapter;
    @Override
    public int getLayoutId() {
        return R.layout.act_pull_list_view;
    }

    @Override
    public void initView() {
        showTitle("我的邀请码", new OnNoDoubleClickListener() {
            @Override
            protected void onNoDoubleClick(View v) {
                finish();
            }
        });
        pullListView.setMode(PullToRefreshBase.Mode.DISABLED);
        listView = pullListView.getRefreshableView();
        listView.setDividerHeight(8);
        inviteCodeAdapter = new InviteCodeAdapter(mContext);
        listView.setAdapter(inviteCodeAdapter);
        pullListView.setOnRefreshListener(this);
        pullListView.setOnItemClickListener(this);
    }

    @Override
    public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {

    }

    @Override
    public void onPullDownToRefresh(PullToRefreshBase refreshView) {

    }

    @Override
    public void onPullUpToRefresh(PullToRefreshBase refreshView) {

    }
}
